class GetLineAndHotUserTreeVoBean {
  bool success;
  String message;
  int code;
  List<Result> result;
  int timestamp;

  GetLineAndHotUserTreeVoBean(
      {this.success, this.message, this.code, this.result, this.timestamp});

  GetLineAndHotUserTreeVoBean.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    code = json['code'];
    if (json['result'] != null) {
      result = new List<Result>();
      json['result'].forEach((v) {
        result.add(new Result.fromJson(v));
      });
    }
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    data['code'] = this.code;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {

  String id;
  String name;
  List<HotUserTreeVos> hotUserTreeVos;

  Result({this.id, this.name, this.hotUserTreeVos});

  Result.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    if (json['hotUserTreeVos'] != null) {
      hotUserTreeVos = new List<HotUserTreeVos>();
      json['hotUserTreeVos'].forEach((v) {
        hotUserTreeVos.add(new HotUserTreeVos.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    if (this.hotUserTreeVos != null) {
      data['hotUserTreeVos'] =
          this.hotUserTreeVos.map((v) => v.toJson()).toList();
    }
    return data;
  }

}

class HotUserTreeVos {
  String id;
  String name;
  double price;
  int type;

  HotUserTreeVos(
      {this.id, this.name, this.price, this.type});

  HotUserTreeVos.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    price = json['price'];
    type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['price'] = this.price;
    data['type'] = this.type;
    return data;
  }
}